package com.mikhailenko.transportMVC.repository;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.query.Param;

import com.mikhailenko.transportMVC.model.Firm;

public interface FirmRepository extends JpaRepository<Firm, Integer> {

	@Query("SELECT firm FROM firm firm WHERE firm.name = :name ")
	Firm findByName(@Param("name") String name);

}
